package com.demo.mapper;

import com.demo.entity.Products;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductsMapper {
    List<Products> queryProdectsInfo();                                     //��ѯ������Ʒ��Ϣ�б�
    List<Products> queryPageProdectsInfo(int pnum);          //��ҳ��ѯ��Ʒ��Ϣ�б�
    
    void deleteProductInfo(String pid);										//ɾ����Ʒ
    //������Ʒ
    void insertProductInfo(@Param("pname")String pname,@Param("pprice")String pprice,@Param("pnum")int pnum,@Param("pcategory")String pcategory,@Param("pdescription")String pdescription);
    //������Ʒ
    void updateProductInfo(@Param("pname")String pname,@Param("pprice")String pprice,@Param("pnum")int pnum,@Param("pcategory")String pcategory,@Param("pdescription")String pdescription,@Param("pid")String pid);


}
